package service;

import model.Student;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;
@Service
public class StudentService {
    private List<Student> students =new ArrayList<>();
    public StudentService() {
        students.add("22090202140","toru","ne","2407167907@qq.com",10);



    }

    public List<Student> findAllStudents() {
        return students;
    }


    public Student createStudent(Student student) {
        students.add(student);
        return student;

    }
}
